#include "ad_custom_nandp.h"
#include "ui_ad_custom_nandp.h"
#include "value.h"
#include "dlcw.h"

ad_custom_nandp::ad_custom_nandp(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ad_custom_nandp)
{
    ui->setupUi(this);
    setWindowTitle("查看用户密码");
    Accp pAccp = ff();
    while (pAccp!= NULL||strcmp(pAccp->name,_name.c_str())!=0) {
        pAccp = pAccp->next;
    }
    _password=pAccp->password;
    ui->custom_name->setText(QString::fromStdString(_name));
    ui->custom_pswd->setText(QString::fromStdString(_password));
}

ad_custom_nandp::~ad_custom_nandp()
{
    delete ui;
}

void ad_custom_nandp::on_pushButton_clicked()//查询
{

}

void ad_custom_nandp::on_pushButton_2_clicked()
{
    accept();
}
